(get_next_display_element): Use DECODE_BYTE.
authorKenichi Handa <handa@m17n.org>
Tue, 7 Jul 2009 01:41:57 +0000 (01:41 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 7 Jul 2009 01:41:57 +0000 (01:41 +0000)
(x_produce_glyphs): Likewise.

src/xdisp.c

index 8094b8f8e1356a77d368e3d7d498b5fe8f2e9dd5..8a2b2a387d9ff25d9e20079cdd9c8b30d2283155 100644 (file)
@@ -5743,7 +5743,7 @@ get_next_display_element (it)
                                  || it->c == 0xAD /* SOFT HYPHEN */)))
                       : (it->c >= 127
                          && (! unibyte_display_via_language_environment
-                             || (UNIBYTE_CHAR_HAS_MULTIBYTE_P (it->c)))))))
+                             || (DECODE_UNIBYTE (it->c) <= 0xA0))))))
            {
              /* IT->c is a control character which must be displayed
                 either as '\003' or as `^C' where the '\\' and '^'
@@ -21196,9 +21196,8 @@ x_produce_glyphs (it)
        {
          if (SINGLE_BYTE_CHAR_P (it->c)
              && unibyte_display_via_language_environment)
-           it->char_to_display = unibyte_char_to_multibyte (it->c);
-         if (! SINGLE_BYTE_CHAR_P (it->char_to_display))
            {
+             it->char_to_display = DECODE_UNIBYTE (it->c);
              it->multibyte_p = 1;
              it->face_id = FACE_FOR_CHAR (it->f, face, it->char_to_display,
                                           -1, Qnil);